
package com.avrio.json;

@SuppressWarnings("serial")
public class ParseException extends RuntimeException {

    private final int offset;
    private final int line;
    private final int column;

// <editor-fold defaultstate="collapsed" desc="ParseException()">

    public ParseException(String message, int offset, int line, int column) {

        super(message + " at " + line + ":" + column);
        this.offset = offset;
        this.line = line;
        this.column = column;
    }
// </editor-fold>

// <editor-fold defaultstate="collapsed" desc="getOffset()">

    public int getOffset() {
        return offset;
    }
// </editor-fold>

// <editor-fold defaultstate="collapsed" desc="getLine()">

    public int getLine() {
        return line;
    }
// </editor-fold>

// <editor-fold defaultstate="collapsed" desc="getColumn()">

    public int getColumn() {
        return column;
    }
// </editor-fold>
}
